<template>
  <div class="setting-main">
      <div class="setting-header">
        <span @click="goBack"><van-icon name="arrow-left" /></span>
        <div class="center">设置</div>
      </div>
    <div class="setting-box-cell">
      <van-cell title="登录密码" to="resetPwd" is-link />
      <van-cell title="资金密码" to="fundPassword" is-link value="未设置" />
      <van-cell title="收获地址" to="address" is-link />
    </div>

    <div class="setting-box">
      <van-button style="border-radius: 5px" block color="#002FFF">退出</van-button>
    </div>
  </div>
</template>

<script>
  export default {
    methods:{
      goBack(){
        this.$router.go(-1)
      }
    }
  }
</script>

<style scoped lang="scss">
.setting-main{
  width: 100%;
  padding:0 3%;
  box-sizing: border-box;
  .setting-header{
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    span{
      position: absolute;
      left: 0;
    }
    .center{
      width: 100%;
      height: 45px;
      text-align: center;
      line-height: 45px;
      font-size: 15px;
    }
  }
  .setting-box-cell{
    width: 100%;
  }
  .setting-box{
    margin-top: 20px;
  }
}

</style>